package com.jiazhong.spring.ioc.annotation;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class DemoE1 {

    private Integer id;
    private String name;
    private Character gender;


    public DemoE1(@Value("1") Integer id, @Value("张三") String name, @Value("男") Character gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }
}
